package com.etc.rabbitmq;

import com.etc.entity.User;

import java.io.Serializable;

/**
 * 文件名:com.etc.rabbitmq
 * 描述：MQ队列所需的秒杀商品的信息
 * 作者:吴仕泉
 * 时间:2019/5/24 0:33
 */
public class FlashMessage implements Serializable{
    //秒杀的用户id
    private Integer userId;
    //收货地址
    private String userAddress;
    //收货联系方式
    private String userTel;
    //收货人姓名
    private String userName;
    //秒杀商品
    private Integer flashGoodsId;
    //秒杀商品价格
    private Double flashaslary;
    //秒杀商品数量
    private Integer goodsNum;
    //商品ID
    private Integer goodsId;

    public FlashMessage() {
    }

    public FlashMessage(Integer userId, String userAddress, String userTel, String userName, Integer flashGoodsId, Double flashaslary, Integer goodsNum, Integer goodsId) {
        this.userId = userId;
        this.userAddress = userAddress;
        this.userTel = userTel;
        this.userName = userName;
        this.flashGoodsId = flashGoodsId;
        this.flashaslary = flashaslary;
        this.goodsNum = goodsNum;
        this.goodsId = goodsId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getFlashGoodsId() {
        return flashGoodsId;
    }

    public void setFlashGoodsId(Integer flashGoodsId) {
        this.flashGoodsId = flashGoodsId;
    }

    public Double getFlashaslary() {
        return flashaslary;
    }

    public void setFlashaslary(Double flashaslary) {
        this.flashaslary = flashaslary;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "FlashMessage{" +
                "userId=" + userId +
                ", userAddress='" + userAddress + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userName='" + userName + '\'' +
                ", flashGoodsId=" + flashGoodsId +
                ", flashaslary=" + flashaslary +
                ", goodsNum=" + goodsNum +
                ", goodsId=" + goodsId +
                '}';
    }
}
